package cn.java59;

public class Homework4 {

	public static void main(String[] args) {
		for (int i = 100; i <= 999; i++) {
			int a, b, c;
			a = i / 100;
			b = (i / 10) % 10;
			c = i % 10;
			if (i == a * a * a + b * b * b + c * c * c) {
				System.out.print(i);
			}
		}

	}

}
